# from django.conf.urls import url
# from django.urls import path
# from .views import AdminViews
#
#
#
# app_name = 'user'
# urlpatterns = [
#     path('login/', AdminViews.as_view(), )
# ]

from django.conf.urls import url
from django.urls import path

from .views import AdminViews, IndexViews, AccountIndexViews, AccountInfoViews, AccountSetViews, FinanceIndexViews, \
    FoodIndexViews, MemberIndexViews, StatIndexViews, FoodInfoViews, FoodCatViews, FoodSetViews, MemberInfoViews, \
    MemberSetViews, MemberCommentViews, FinanceAccountViews, FinancePayInfoViews, StatFoodViews, StatMemberViews, \
    StatShareViews, EditViews, ResetPwdViews

app_name = 'user'
urlpatterns = [
    path('login/', AdminViews.as_view(), name="login"),
    path('index/', IndexViews.as_view(), name='index'),
    path('edit/', EditViews.as_view(), name="edit"),
    path('reset_pwd/', ResetPwdViews.as_view(), name="reset_pwd"),
    # path('logout/', AdminViews.as_view(), name="logout"),

    path('account_index/', AccountIndexViews.as_view(), name='account_index'),
    path('account_info/', AccountInfoViews.as_view(), name='account_info'),
    path('account_set/', AccountSetViews.as_view(), name='account_set'),

    path('food_index/', FoodIndexViews.as_view(), name='food_index'),
    path('food_set/', FoodSetViews.as_view(), name='food_set'),
    path('food_cat/', FoodCatViews.as_view(), name='food_cat'),
    path('food_info/', FoodInfoViews.as_view(), name='food_info'),

    path('member_index/', MemberIndexViews.as_view(), name='member_index'),
    path('member_info/', MemberInfoViews.as_view(), name='member_info'),
    path('member_set/', MemberSetViews.as_view(), name='member_set'),
    path('member_comment/', MemberCommentViews.as_view(), name='member_comment'),

    path('finance_index/', FinanceIndexViews.as_view(), name='finance_index'),
    path('finance_account/', FinanceAccountViews.as_view(), name='finance_account'),
    path('finance_pay_info/', FinancePayInfoViews.as_view(), name='finance_pay_info'),

    path('stat_index/', StatIndexViews.as_view(), name='stat_index'),
    path('stat_food/', StatFoodViews.as_view(), name='stat_food'),
    path('stat_member/', StatMemberViews.as_view(), name='stat_member'),
    path('stat_share/', StatShareViews.as_view(), name='stat_share'),



]
